let model = require("../model/userTable");

module.exports = {
   count: (params) => {
      return model.find(params).count();
   },
   query: (params, skip, limit) => {
      return model.find(params).skip(skip).limit(limit);
   },
   add: (data) => {
      return model.insertMany([data]);
   },
   userInsertMany: (data) => {
      return model.insertMany(data);
   },
   del: (data) => {
      return model.deleteOne(data);
   },
   update: (data1, data2) => {
      return model.updateOne(data1, data2);
  },

   
}